package algorthm.systemTraning.mergeSort.ReversePair;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * @className: Test
 * @Description:
 * @Author: wangyifei
 * @Date: 2022/9/22 16:01
 */
public class Test {
    private static Logger logger = LoggerFactory.getLogger(Test.class);

    public static void main(String[] args) {
        String str = "36:8,36:35,36:29,36:17,36:17,36:6,36:24,36:15,36:0,36:7,36:9,36:3,73:8,73:35,73:29,73:68,73:17,73:17,73:72,73:66,73:6,73:38,73:71,73:24,73:59,73:71,73:15,73:0,73:63,73:56,73:7,73:50,73:9,73:3,73:36,8:6,8:0,8:7,8:3,35:29,35:17,35:17,35:6,35:24,35:15,35:0,35:7,35:9,35:3,91:29,91:68,91:17,91:17,91:72,91:66,91:6,91:38,91:71,91:24,91:59,91:71,91:15,91:0,91:81,91:63,91:56,91:7,91:50,91:75,91:83,91:9,91:3,91:36,29:17,29:17,29:6,29:24,29:15,29:0,29:7,29:9,29:3,68:17,68:17,68:66,68:6,68:38,68:24,68:59,68:15,68:0,68:63,68:56,68:7,68:50,68:9,68:3,68:36,17:6,17:15,17:0,17:7,17:9,17:3,92:17,92:72,92:66,92:6,92:38,92:71,92:24,92:59,92:71,92:15,92:0,92:81,92:63,92:56,92:7,92:50,92:75,92:83,92:9,92:3,92:36,17:6,17:15,17:0,17:7,17:9,17:3,72:66,72:6,72:38,72:71,72:24,72:59,72:71,72:15,72:0,72:63,72:56,72:7,72:50,72:9,72:3,72:36,66:6,66:38,66:24,66:59,66:15,66:0,66:63,66:56,66:7,66:50,66:9,66:3,66:36,6:0,6:3,38:24,38:15,38:0,38:7,38:9,38:3,38:36,71:24,71:59,71:15,71:0,71:63,71:56,71:7,71:50,71:9,71:3,71:36,24:15,24:0,24:7,24:9,24:3,59:15,59:0,59:56,59:7,59:50,59:9,59:3,59:36,71:15,71:0,71:63,71:56,71:7,71:50,71:9,71:3,71:36,15:0,15:7,15:9,15:3,81:63,81:56,81:7,81:50,81:75,81:9,81:3,81:36,63:56,63:7,63:50,63:9,63:3,63:36,56:7,56:50,56:9,56:3,56:36,7:3,50:9,50:3,50:36,75:9,75:3,75:36,92:83,92:9,92:3,92:36,83:9,83:3,83:36,9:3" ;
        System.out.println(Arrays.stream(str.split(",")).sorted().collect(Collectors.joining(",")));
    }
}
